//
//  CIBNTabBarController.m
//  CIBN
//
//  Created by ZNGOO on 16/7/18.
//  Copyright © 2016年 韦儒健. All rights reserved.
//

#import "CIBNTabBarController.h"
#import "CIBNNavigationController.h"

#import "CIBNHomeController.h"
#import "CIBNMineController.h"
#import "CIBNVIPController.h"
#import "CIBNChannelController.h"

@interface CIBNTabBarController ()

@end

@implementation CIBNTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
   
    self.tabBar.tintColor = RGB(18, 146, 228);
    // 创建框架
    [self createView];
}

- (void)createView{
    
    CIBNHomeController * homeVC = [[CIBNHomeController alloc] init];
    homeVC.title = @"首页";
    homeVC.tabBarItem.image = [UIImage imageNamed:@"cm2_btm_icn_discovery"];
    CIBNNavigationController * homeNC = [[CIBNNavigationController alloc] initWithRootViewController:homeVC];
    
    
    CIBNChannelController * channelVC = [[CIBNChannelController alloc] init];
    channelVC.title = @"频道";
    channelVC.tabBarItem.image = [UIImage imageNamed:@"cm2_btm_icn_music"];
    CIBNNavigationController * channelNC = [[CIBNNavigationController alloc] initWithRootViewController:channelVC];
    
    
    CIBNVIPController * vipVC = [[CIBNVIPController alloc] init];
    vipVC.title = @"会员";
    vipVC.tabBarItem.image = [UIImage imageNamed:@"cm2_btm_icn_friend"];
    CIBNNavigationController * vipNC = [[CIBNNavigationController alloc] initWithRootViewController:vipVC];
    
    
    CIBNMineController * mineVC = [[CIBNMineController alloc] init];
    mineVC.title = @"我";
    mineVC.tabBarItem.image = [UIImage imageNamed:@"cm2_btm_icn_account"];
    CIBNNavigationController * mineNC = [[CIBNNavigationController alloc] initWithRootViewController:mineVC];
    
    self.viewControllers = @[homeNC, channelNC, vipNC, mineNC];
}

@end
